<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<script>
			"use strict"
			
			let obj = {username: "kobe", age: 31}
			obj[Symbol.iterator] = function* myTest(){
				yield 1
				yield 2
				yield 3
			}
			for(let i of obj){
				console.log(i)
			}
		</script>
	</body>
</html>
